package com.lu.statistics.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lu.statistics.entity.SysAppPermission;
import com.lu.statistics.entity.front.response.UserPermissionResponse;
import com.lu.statistics.entity.vo.UserPermissions;

import java.util.List;

public interface PermissionService extends IService<SysAppPermission> {
    /**
     * 查询权限用户菜单列表(首页)
     *
     * @param userId
     * @return
     */
    List<UserPermissions> queryUserPermMenuList(Integer userId, String type);

    /**
     * 按角色编码查询授权菜单列表
     * @param roleCode
     * @param type
     * @return
     */
    List<UserPermissions> queryRolePermMenuList(String roleCode, String type);

    /**
     * 获取用户权限菜单列表(用户中心)
     *
     * @param roleCode
     * @param type
     * @return
     */
    List<UserPermissionResponse> getUserPermMenus(String roleCode, String type);
}
